import request from 'utils/request'

class reportService {
    
    /**
     * http://39.98.161.145:8888/api/tunnel/section/list?access_token=4acf72d1-9e6f-473c-bb10-339ecd485649
     */
    getlist () {
        return request({
            url: 'api/tunnel/section/list',
            method: 'get'
        })
    }

    /**
     * http://39.98.161.145:8888/api/tunnel/equipmentFault/facilityTarget?access_token=4acf72d1-9e6f-473c-bb10-339ecd485649&sectionCode=CU4933Y
     * @param {*} params 
     * sectionCode=CU4933Y
     */
    getfacilityTarget(params){
        return request({
            url: 'api/tunnel/equipmentFault/facilityTarget',
            method: 'post',
            params: params
        })
    }

    /**
     * http://39.98.161.145:8888/api/tunnel/equipmentFault/faultEquipInfo?access_token=4acf72d1-9e6f-473c-bb10-339ecd485649&sectionCode=CU4933Y
     * @param {*} params 
     * sectionCode=CU4933Y
     */
    getfaultEquipInfo(params){
        return request({
            url: 'api/tunnel/equipmentFault/faultEquipInfo',
            method: 'post',
            params: params
        })
    }
    
    /**
     * http://39.98.161.145:8888/api/tunnel/environ/realEnvironDataBySectionCode?access_token=4acf72d1-9e6f-473c-bb10-339ecd485649&sectionCode=CU4933Y
     * @param {*} params 
     * sectionCode=CU4933Y
     */
    getrealEnvironDataBySectionCode(params){
        return request({
            url: 'api/tunnel/environ/realEnvironDataBySectionCode',
            method: 'post',
            params: params
        })
    }

    /**
     * http://39.98.161.145:8888/api/tunnel/prediction/getPredictionBySectionCode?access_token=4acf72d1-9e6f-473c-bb10-339ecd485649&sectionCode=CU4933Y
     * @param {*} params 
     * sectionCode=CU4933Y
     */
    getPredictionBySectionCode(params){
        return request({
            url: 'api/tunnel/prediction/getPredictionBySectionCode',
            method: 'post',
            params: params
        })
    }

    /**
     * http://39.98.161.145:8888/api/tunnel/carFlow/carData?access_token=4acf72d1-9e6f-473c-bb10-339ecd485649&sectionCode=CU4933Y
     * @param {*} params 
     * sectionCode=CU4933Y
     */
    getcarData(params){
        return request({
            url: 'api/tunnel/carFlow/carData',
            method: 'post',
            params: params
        })
    }



}


export default new reportService()